var tmodel = new zxt.data.TunnelTreeModel("TREE1");
tmodel.setParam({even:"1"});
		
function onInitialize(dw){
	if ( dw ){
		dw.populateComponents();
	}	
	
};			

function onClick$BtnUpload(){
	id++;
	box.action("loc.to?page=ULOAD&pageName="+id);
	box.doUpload();
}


function onClick$BtnDownload(){
	var dwload = $zxtUI.download;
	var dw = new zxt.data.DataWrapper();
	zxt.help.addComponetLabel(dw);
	dwload.doDownLoad( dw, "cvs", "DWLOAD", "download");
}

function onClick$BtnCommit(){
	
	var callback = { 
			onSuccess: function(dw){
				dw.populateComponents();					
			},
			onFailure: function(xmlR, status, e){ alert("ERROR"); }
		}; 
	
	var dw = new zxt.data.DataWrapper();
	dw.addComponents();	
	$zxt.commit(dw, callback);
	
}
		
